package day4;
import java.util.Scanner;
public class D4_5 {
    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        System.out.println("请输入第一个整数：");
        int num1=a.nextInt();
        System.out.println("请输入第二个整数：");
        int num2=a.nextInt();
        double result=0;
        System.out.println("请输入您想要进行的类型：（1：加法、2：减法、3：乘法：、4：除法）");
        int type=a.nextInt();
        switch (type){
            case 1:
                result=num1+num2;
                break;
            case 2:
                result=num1-num2;
                break;
            case 3:
                result=num1*num2;
                break;
            case 4:
                result=num1%num2;
                break;
        }
        System.out.println(result);
    }
}
